#include "Process.h"
//函数实现
void ProcessOn()
{
    const char* lable = "|\\-/";
    char style[NUM];
    memset(style,'\0',sizeof(style));
    int cnt = 0;
    while(cnt <= 100)
    {
        printf("[%-100s][%d%%][%c]\r",style,cnt,lable[cnt%4]);
        fflush(stdout);
        style[cnt++] = STY;
        usleep(50000);
    }
    printf("\n");
    printf("done!\n");
}
